import request from 'src/utils/request'

const base = import.meta.env.DEV ? 'http://localhost:3019/zhoupan' : ''
const base_1 = import.meta.env.DEV ? 'http://localhost:3019/limen' : ''

// 获取房屋管理分期楼栋单元的下拉框数据


// 获取房屋状态的下拉数据


// 获取门禁设备同步列表接口
export function doorDeviceList(data) {
    return request({
        url: '/pay/gateway/config/gatewayPersonlist',
        // url: base_1+'/pay/gateway/config/gatewayPersonlist',
        method: 'post',
        data
    })
    return Promise.resolve({
        data: {
            records: [
                {
                    roomCode: 11,
                    villageName:'项目名称',
                    stagesName:'所属公司',
                    buildingCode:'创建时间',
                    unitName:'项目名称',
                    roomCode:'0',
                    residentName:'0'
                },
                {
                    roomCode: 12,
                    villageName:'项目名称',
                    stagesName:'所属公司',
                    buildingCode:'创建时间',
                    unitName:'项目名称',
                    roomCode:'1',
                    residentName:'1'
                },
                {
                    roomCode: 12,
                    villageName:'项目名称',
                    stagesName:'所属公司',
                    buildingCode:'创建时间',
                    unitName:'项目名称',
                    roomCode:'1',
                    residentName:'2'
                },
            ],
            total: 10
        }
    })
}

// 门禁设备同步一键同步确定接口
export function saveSynchronizate(data) {
    return request({
        url: '/pay/gateway/config/addAllList',
        // url: base_1+ '/pay/gateway/config/addAllList',
        method: 'post',
        data
    })
}

// 门禁设备勾选批量同步的接口
export function synchronizate(data) {
    return request({
        url: '/pay/gateway/config/addauthList',
        // url: base_1+'/pay/gateway/config/addauthList',
        method: 'post',
        data
    })
}

// 门禁设备查看同步接口
export function addAuthList(data) {
    return request({
        url: '/pay/gateway/config/addPersonAuthList',
        // url: base_1 + '/pay/gateway/config/addPersonAuthList',
        method: 'post',
        data
    })
}

// 门禁设备查看table数据接口
export function PersonAuthList(data) {
    return request({
        // url: base_1+'/pay/gateway/config/gatewayPersonAuth',
        url: '/pay/gateway/config/gatewayPersonAuth',
        method: 'post',
        data
    })
}

// 门禁设备列表同步接口
export function singleSynchronizate(data) {
    return request({
        // url: base_1+'/pay/gateway/config/addauth',
        url: '/pay/gateway/config/addauth',
        method: 'post',
        data
    })
}
